package jnpf.controller;

import jnpf.base.ActionResult;
import jnpf.service.DeleteVerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/bt/deleteVer")
public class DeleteVerController {

    @Autowired
    private DeleteVerService deleteVerService;

    // *父项删除
    @GetMapping("/delete/{id}")
    public ActionResult deleteVer(@PathVariable("id") String id) {
        return ActionResult.success(deleteVerService.deleteVer(id));
    }
}
